From 2e72c5472bb1cf7400a0a78cf007686ee0032385 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Fri, 3 Oct 2025 04:37:49 +0200 Subject: [PATCH] theme: Uniform the style of the dialog warnings The end session dialog is now using a new style for the warning messages but this style is not re-used by other dialogs that have messages with a similar role. So be consistent, and use same style for all the dialogs that are showing a warning or an info message, and in particular - Keyring dialog error messages - Polkit dialogs error and info messages - Conflicting dialog warning message Part-of: --- data/theme/gnome-shell-sass/widgets/_dialogs.scss | 9 +++++++++ data/theme/gnome-shell-sass/widgets/_login-lock.scss | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/data/theme/gnome-shell-sass/widgets/_dialogs.scss b/data/theme/gnome-shell-sass/widgets/_dialogs.scss index 1cf85f57c..0b61782be 100644 --- a/data/theme/gnome-shell-sass/widgets/_dialogs.scss +++ b/data/theme/gnome-shell-sass/widgets/_dialogs.scss @@ -126,10 +126,19 @@ .prompt-dialog-null-label { @extend %caption; text-align: center; + padding: $base_padding * 1.5; + border-radius: $base_border_radius; + margin: $base_margin 0; } .prompt-dialog-error-label { color: $warning_color; + background-color: transparentize($warning_color, 0.9); + } + + .prompt-dialog-info-label { + color: $fg_color; + background-color: transparentize($fg_color, 0.9); } } diff --git a/data/theme/gnome-shell-sass/widgets/_login-lock.scss b/data/theme/gnome-shell-sass/widgets/_login-lock.scss index 4ac7c4829..b661e93c8 100644 --- a/data/theme/gnome-shell-sass/widgets/_login-lock.scss +++ b/data/theme/gnome-shell-sass/widgets/_login-lock.scss @@ -69,6 +69,10 @@ $_gdm_dialog_width: 25em; .conflicting-session-dialog-desc-warning { text-align: center; color: $warning_color; + background-color: transparentize($warning_color, 0.9); + padding: $base_padding * 1.5; + border-radius: $base_border_radius; + margin: $base_margin 0; } } -- 2.39.5